package cn.sunxyz.struct.bridge;

/**
 * http://www.jasongj.com/design_pattern/bridge/
 * Created by yangrd on 2017/5/12.
 */
public class Client {

    public static void main(String[] args) {
        Transmission auto = new Auto();
        AbstractCar bmw = new BMWCar();
        bmw.setTransmission(auto);
        bmw.run();

        Transmission manual = new Manual();
        AbstractCar benz = new BenZCar();
        benz.setTransmission(manual);
        benz.run();
    }

}
